from . import views
from django.conf.urls import url
from rest_framework_jwt.views import obtain_jwt_token


urlpatterns = [
    url(r'^sms_codes/(?P<mobile>1[3-9]\d{9})/$', views.SMS_Code_View.as_view()),
    url(r'^usernames/(?P<username>\w+)/count/$', views.UserNameView.as_view()),
    url(r'^mobiles/(?P<mobile>1[3-9]\d{9})/count/$', views.MobileView.as_view()),
    url(r'^users/$', views.UserView.as_view()), # 保存注册数据
    url(r'^user/$', views.UserShowView.as_view()), # 个人中心获取用户信息
    url(r'^email/$', views.UserEmailView.as_view()), # 保存注发送邮箱
    url(r'^emails/verification/$', views.UserEmailVifyView.as_view()), # 验证邮箱
    url(r'^authorizations/', obtain_jwt_token), # 登陆验证操作，端口匹配

]
